<template>
  <div>
    <p @click="btn('/find')">关注明星</p>
    <p @click="btn('/my')">发现精彩</p>
    <p @click="btn('/part')">寻找伙伴</p>

    <p>人名{{$route.query.name}}</p>
    <p>人名{{$route.params.username}}</p>
  </div>
</template>

<script>
export default {
  name: "Part",
  methods:{
    btn(name){
      this.$router.push({
        name
      })
    }
  }
}
</script>

<style scoped>

</style>